package cn.aws360.boot.auth.api.constant;

import cn.aws360.boot.base.api.constant.BaseConstant;

/**
 * @author junnan
 */
public interface AuthConstant {

    /**
     * 模块前缀
     */
    String PREFIX = BaseConstant.APP_PREFIX + "-C-AUTH:";

    /**
     * 权限模块
     */
    int MODULE_AUTH_CODE = 0;
    String MODULE_AUTH_NAME = "AUTH";
    String MODULE_AUTH_TAGS = MODULE_AUTH_CODE + "-权限模块";

    /**
     * 系统配置
     */
    String CONF_INIT_PASS = "SYS_INIT_PASS";
    String CONF_INIT_PASS_DEFAULT = "123456";
    String CONF_CAPTCHA_SWITCH = "SYS_CAPTCHA_SWITCH";
    String CONF_CAPTCHA_SWITCH_DEFAULT = "OFF";

    /**
     * 验证码
     */
    Integer CACHE_CAPTCHA_EXPIRE = 5;
    String CACHE_CAPTCHA_CODE = PREFIX + "CAPTCHA_CODE:";

    /**
     * 手机号
     */
    String CACHE_MOBILE_CODE = PREFIX + "MOBILE_CODE:";

    /**
     * 登录用户
     */
    String CACHE_LOGIN_USER = PREFIX + "LOGIN_USER:";

}
